import request from "@/utils/request";

// 获取规则列表
export function queryRulesList(params) {
    return request({
        url: '/admin/ruleManage/queryRule',
        method: 'POST',
        data: params
    })
}
// 保存规则
export function saveRules(params) {
    return request({
        url: '/admin/ruleManage/saveRule',
        method: 'POST',
        data: params
    })
}

// 编辑规则
export function updateRules(params) {
    return request({
        url: '/admin/ruleManage/editRule',
        method: 'POST',
        data: params
    })
}
// 查看规则详情
export function queryRulesDetail(params) {
    return request({
        url: '/admin/ruleManage/queryRuleDetail',
        method: 'get',
        params
    })
}
